Repository navigation
Supply the Grundrente inputs the income tax needs from 2021 - #63
Merged
Merged
Conversation
Personas with a fixed Altersrente set grundrente__betrag_m to 0 and bezieht_altersrente explicitly. Pin gettsim to the branch of ttsim-dev/gettsim#1246. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
MImmesberger
added a commit
to ttsim-dev/gettsim
that referenced
this pull request
Oct 18, 2026
Revert to main once that PR has been merged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hmgaudecker
approved these changes
Nov 17, 2026
hmgaudecker
left a comment
Collaborator
There was a problem hiding this comment.
Verdict
Approve. No changes requested.
What I checked
- Against the current gettsim #1246 head. This PR locks gettsim
b6d73de3; #1246 has since moved nine commits to90f298c8, including a renamed income input and new threshold functions. I ran every persona for every policy year from 2021 against90f298c8: 63 of 63 runs pass. Removingbezieht_altersrentefrom one persona makes the same run fail, so the check can detect a missing input. - Values. The six personas with a fixed
altersrente__betrag_mgetgrundrente__betrag_m = 0andbezieht_altersrentetrue for the retirees and false for the 40-year-old child. That is consistent with a fixed total pension. - The rename I asked for in #1246 (
einkommen_vorjahr_m_ehetoeinkommen_vorvorjahr_m_ehe) does not touch this PR: no persona supplies the Grundrente income input.
Keep the gettsim pin on the #1246 branch; relock.
# Conflicts: # pixi.lock
# Conflicts: # pixi.lock
MImmesberger
added a commit
to ttsim-dev/gettsim
that referenced
this pull request
Nov 26, 2026
The Grundrente income test summed gross receipts. § 97a Abs. 2 S. 1 SGB VI counts the zu versteuerndes Einkommen, plus the steuerfreier Teil of pensions, plus Abgeltungsteuer capital income. Taking gross receipts overstated the income by roughly the Vorsorgeaufwendungen, about 140 €/month less Zuschlag for a single pensioner with a 1,800 € pension. **Approach.** The law uses the income of the vorvergangenes Kalenderjahr (§ 97a Abs. 2 S. 2 SGB VI; the year before that if no tax assessment exists, S. 3), so it can't be computed in the same run. It is now one input at the couple level, `grundrente__einkommen_vorvorjahr_m_ehe`. A run for that earlier year produces it through the per-person target `grundrente__einkommen_für_einkommensanrechnung_im_übernächsten_jahr_y`, summed over the spouses (`…_m_ehe`). This is the same two-run pattern as Elterngeld, and a new how-to notebook shows it. **Also fixed:** - Thresholds are rounded up to full Euro and stay fixed for the calendar year, using the Rentenwert of the previous 1 July (§ 97a Abs. 4 S. 1, 5). - The Zuschlag is tax-free (§ 3 Nr. 14a EStG). From 2021, anyone who supplies `einnahmen__renten__gesetzliche_m` as data also needs `grundrente__betrag_m` and `bezieht_altersrente`. - The 39.32 € Rentenwert had the date key `2024-01-07`; it is now `2024-07-01` (reported in #1202, still wrong on `main`). **Worth a look:** - Not modelled: the t − 3 fallback of § 97a Abs. 2 S. 3 SGB VI (the user passes the income of the right year), the fallback without tax data (Abs. 2 S. 4), Versorgungsbezüge (#1247), the 1/10 rule for capital income (#1248), and the fixed euro amount of the steuerfreier Teil of pensions (GETTSIM approximates it via the Besteuerungsanteil). - A negative zvE (only possible when supplied as data) offsets the other components. Neither the statute nor the GRA addresses negative amounts. Closes #919. Follow-ups: ttsim-dev/gettsim-personas#63, ttsim-dev/soep-preparation#107. **Merge order.** ttsim-dev/gettsim-personas#63 needs this PR (its new persona inputs are unnecessary on gettsim `main`) and this PR's docs need it, so: merge it while it is pinned to this branch, re-pin gettsim-personas here to `main` and relock, merge this PR, then point gettsim-personas back at gettsim `main`. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to ttsim-dev/gettsim#1246. That PR makes the Grundrentenzuschlag tax-free (§ 3 Nr. 14a EStG). From 2021 the taxable pension therefore needs
grundrente__betrag_mandbezieht_altersrente.Six personas fix
altersrente__betrag_mas a constant (grundsicherung_im_alter/*andgesetzliche_altersrente/*_with_fixed_public_pension). Computing the Zuschlag for them would take invented pension histories and would contradict the fixed total. So they setgrundrente__betrag_m = 0, and setbezieht_altersrenteper person: true for the retirees, false for the working-age child. All outputs for 2021–2025 are unchanged.gettsim is pinned to
mainagain. The full test suite passed against the head of ttsim-dev/gettsim#1246. Until that PR is merged (andpixi.lockpicks it up),test_persona_inputs_does_not_contain_unnecessary_inputsfails here, because gettsimmaindoes not need the two new inputs yet.